package com.pmcc.platform.giftGoods.repository;

import com.pmcc.platform.giftGoods.entity.Goods;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @program: vidalGift
 * @description:
 * @author: Du
 * @create: 2020-12-11 15:29
 **/
public interface GoodsRepository extends JpaRepository<Goods,String> {



    Page<Goods> findAllByDelFlagAndNameContainsAndRemarkContainsOrderByCreateTimeDesc(String delFlag,String name,String remark,Pageable pageable);

    Goods findAllByIdAndDelFlag(String id,String delFLag);

    Page<Goods> findAllByNameContainsAndDelFlag(String goodsName,String delFlag,Pageable pageable);



}
